<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use \think\Route;

//进入主页面前台
Route::get('/','home/index/index');

//用户检测登录的路由
Route::get('/login','admin/login/index');
//后台主页
Route::get('/admin/index','admin/index/index');
//用来登录的对应操作
Route::controller('/admin/login','admin/login');
//后台管理员的路由
Route::controller('/admin/admin','admin/Admin');
//后台管理员角色的路由
Route::controller('/admin/roles','admin/roles');
//后台角色节点的路由
Route::controller('/admin/nodes','admin/nodes');
//后台列表的路由
Route::controller('/admin/category','admin/category');
//后台商品的路由
Route::controller('/admin/goods','admin/goods');
//后台的前台用户管理
Route::controller('/admin/user','admin/User');
//后台的友情链接路由
Route::controller('/admin/friends','admin/Friends');
//后台公告路由
Route::controller('/admin/notices','admin/Notices');
//后台广告路由
Route::controller('/admin/adversts','admin/Adversts');
//后台品牌路由
Route::controller('/admin/brand','admin/Brand');
//后台轮播图路由
Route::controller('/admin/picture','admin/Picture');
//后台评论路由
Route::controller('/admin/comments','admin/Comments');
//后台收货地址
Route::controller('/admin/address','admin/Address');
//后台收藏路由
Route::controller('/admin/collections','admin/Collections');
//后台点赞路由
Route::controller('/admin/gives','admin/Gives');
//后台订单路由
Route::controller('/admin/orders','admin/Orders');



//前台登录
Route::controller('/home/login','home/login');
Route::controller('/cart','home/cart');
//前台公告
Route::controller('/notices','home/notices');
//前台商品列表，详情
Route::controller('/lists','home/lists');
//前台收藏
Route::controller('/collections','home/Collections');
//前台点赞
Route::controller('/gives','home/gives');
//前台订单
Route::controller('/orders','home/orders');
//支付
Route::controller('/payment','home/Payment');
Route::controller('/checkout','home/checkout');
Route::controller('/index','home/index');
//友情链接
Route::controller('/friends','home/Friends');
//个人中心
Route::controller('/personal','home/Personal');
//前台评论路由
Route::controller('/comments','home/Comments');






